package cn.pn.project.client.order;

import cn.pn.project.config.DmConfiguration;
import cn.pn.project.pojo.base.Address;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 商品订单Client
 */
@FeignClient(name = "pn-base-provider", configuration = DmConfiguration.class)
public interface RestBaseOrderClient {

    /**
     * 根据地址主键id查询地址信息(xyx)
     * @RequestParam param
     * @return
     * @throws Exception
     */
    @PostMapping("/getAddressById")
    public Address getAddressById(@RequestParam(value = "addressId",required = false) Integer addressId)throws Exception;

}
